import * as mars3d from "mars3d"
import { Cesium } from "mars3d"
 
import "mars3d/dist/mars3d.css";
import "mars3d-cesium/Build/Cesium/Widgets/widgets.css";
import { mapOptions } from "@/mapConfig/config";
 
// 定义全局地图变量
export let map: mars3d.Map | null = null;
//必须有这两行css,否则地球出来了，样式还是乱的
export function initMap() {
  // 创建三维地球场景
  map = new mars3d.Map("mars3dContainer",mapOptions )
  return map
}